#ifndef _GREG_VOXELIZER_H
#define _GREG_VOXELIZER_H



class DecoRenderData;
struct gtVertex;
struct gtPolygon;

#include "stdafx.h"


class GregVoxelizerAdapter
{
public:
	GregVoxelizerAdapter();
	~GregVoxelizerAdapter();

	void Voxelize(DecoRenderData* renderData, const Box& scnBox, BYTE*** solidElements, INT xSize, INT ySize, INT zSize);
private:
	gtVertex ** mPolyVerts;       /* vertex list */
	int mNumVerts;
	gtPolygon **mPolys; 
	int mNumPolys;

	void convertFromRenderDataToPoly(DecoRenderData* renderData);
};

#endif